<?php
/**
 * @deprecated （不用了）
 * 后台
 * Author: Administrator
 * Date: 2018/1/16
 * Time: 9:42
 * Created by PhpStorm.
 */

use Illuminate\Support\Facades\Route;

Route::group([], function () {

    /** 登录相关 */
    Route::get('admin-web/login', ['as'=>'web-login','uses'=>'Auth\WebAuthController@webLogin']);
    Route::post('admin-web/login', ['as'=>'web-login','uses'=>'Auth\WebAuthController@webLoginPost']);
    Route::get('web-logout', ['as'=>'web-logout','uses'=>'Auth\WebAuthController@webLogout']);

    Route::get('admin/index',['as'=>'web-home','uses'=>'Admin\HomeController@webIndex']);

    Route::get('bym_news','WebPage\ArticleController@articleList');

    Route::get('bym_article/{id}','WebPage\ArticleController@articleDetail');

    Route::group(['prefix'=>'admin','namespace'=>'WebPage\Admin','middleware'=>['auth:web-admin']],function () {

        Route::resource('news/edit_news','ArticleController');

        Route::resource('news/type-tag','ArticleTypeController');

        Route::resource('video/web-video','VideoController');

        Route::resource('feedback','FeedbackController');

        Route::post('news/article/uploadimg','ArticleController@uploadArticleImg');

    });
});
